/**
 * created by haitao.yao @ Feb 22, 2011
 */
package com.googlecode.storage;

import java.io.Serializable;

/**
 * configuration for storage
 * 
 * @author haitao-yao
 * 
 */
public class StorageConfig implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4318767938938015524L;

	private static final long ONE_MB = 1024 * 1024;

	private static final long ONE_GB = 1024 * ONE_MB;

	/**
	 * every data file max size
	 */
	private long everyDataFileMaxSize = ONE_GB;

	/**
	 * read thread count for every data file
	 */
	private int readThreadCountEveryDataFile = 4;

	public StorageConfig() {
	}

	public long getEveryDataFileMaxSize() {
		return everyDataFileMaxSize;
	}

	public void setEveryDataFileMaxSize(long everyDataFileMaxSize) {
		this.everyDataFileMaxSize = everyDataFileMaxSize;
	}

	public int getReadThreadCountEveryDataFile() {
		return readThreadCountEveryDataFile;
	}

	public void setReadThreadCountEveryDataFile(int readThreadCountEveryDataFile) {
		this.readThreadCountEveryDataFile = readThreadCountEveryDataFile;
	}

}
